<?php
require_once './RobotServiceEx/autoload.php';

$robotServiceEx = new RobotServiceEx();

// 设置maxReturn
$robotRequest = new RobotRequest(10, 'wifi password', 'php-webservice');
$pf = new UserAttribute();
$pf->setName('platform');
$pf->setValue('web');
$attributes = array(
  $pf
);
$robotRequest->setAttributes($attributes);

$deliver = new deliver();
$deliver->setRobotRequest($robotRequest);
var_dump($deliver);
// $result = $robotServiceEx->deliver($deliver);

// var_dump($result);
?>